package PTA_7_41;

import java.util.Scanner;

interface IComputer {
    public int computer(int n,int m);
}
class Add implements IComputer {
    @Override
    public int computer(int n, int m) {
        return m+n;
    }
}


class Sub implements IComputer {
    @Override
    public int computer(int n, int m) {
        return n - m;
    }
}

public class Test_2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        IComputer iComputer = new Add();
        System.out.println(iComputer.computer(m, n));
        IComputer iComputer1 = new Sub();
        System.out.println(iComputer1.computer(m, n));
    }
}
